<template>
  <div>
    <Home @sonData="fatData"></Home>
    <City :send="cityFat"></City>
  </div>
</template>

<script>
  //注册组件
  import Home from '@/components/Home.vue'
  import City from '@/components/City.vue'
  export default {
    components:{
      Home,City
    },
    data() {
      return {
         cityFat:[]
      }
    },
    methods: {
      fatData(val) {
        console.log(val)
        this.cityFat=val
      }
    },
  }
</script>

<style lang="scss" >

</style>